package com.trust.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ccc
 * @since 2023-11-24 14:12:58
 */
@Data
@TableName("inventory_record")
public class InventoryRecord {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("数量")
    private BigDecimal num;

    @ApiModelProperty("出入库时间")
    private Date inventoryTime;

    @ApiModelProperty("出入库类型")
    private Integer inventoryType;

    @ApiModelProperty("物料")
    private Integer materialId;

    @ApiModelProperty("物料名称")
    private String materialName;

    @ApiModelProperty("物料批号")
    private String materialCode;

    @ApiModelProperty("物料类型")
    private Integer materialType;

    @ApiModelProperty("物料类型名称")
    private String materialTypeName;

    @ApiModelProperty("仓库")
    private Integer storehouseId;

    @ApiModelProperty("重量")
    private BigDecimal weight;

    @ApiModelProperty("出入库单号")
    private String code;

    @ApiModelProperty("计量单位")
    private String unit;

    @ApiModelProperty("计量单位id")
    private Integer unitId;

    @ApiModelProperty("父id")
    private Integer parentId;

    @ApiModelProperty("库存批号")
    private String stockCode;

    @ApiModelProperty("关联单号")
    private String linkCode;
}